package com.ifugle.rap.application.mapper;

import java.util.List;
import com.ifugle.rap.application.model.UserMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMaterialMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserMaterial record);

    int insertSelective(UserMaterial record);

    UserMaterial selectByPrimaryKey(Long id);

    List<UserMaterial> selectByUserId(Long userId);

    int updateByPrimaryKeySelective(UserMaterial record);

    int updateByPrimaryKey(UserMaterial record);

    UserMaterial selectByUserIdAndmaterialId(@Param("userId") Long userId,@Param("materialId") Long materialId);
}
